<!-- 反馈详情 -->
<template>
	<view>
		<!-- 问题和意见 -->
		<view class="title">
			<view class="title_item">
				<view class="dian"></view>
				<view class="title_text">
					问题和意见
				</view>
			</view>

		</view>
		<view class="" style="padding: 20rpx;">
			<u--textarea  v-model="opinion" height="100" maxlength="500" count :disabled="true">
			</u--textarea>
		</view>

		<!-- 图片上传 -->
		<view class="title">
			<view class="title_item">
				<view class="dian"></view>
				<view class="title_text">
					图片
				</view>
			</view>
		</view>
		<view class="" style="margin-top: 20rpx;margin-left: 20rpx;">
			 <u-album :urls="imgList" space="6" multipleSize="80"></u-album>
		</view>

		<!-- 联系电话 -->
		<view class="title">
			<view class="title_item">
				<view class="dian"></view>
				<view class="title_text">
					联系电话
				</view>
			</view>
		</view>
		<view class="" style="padding: 20rpx;">
			<u--input v-model="phone_number" type="number" :disabled="true">
			</u--input>
		</view>

		<!-- 提交按钮 -->
		<!-- <view class="bottom">
			<view class="bottom_btn" @click="submit()">
				提交
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				opinion: '', //反馈内容
				fileList1: [], //显示的图片数组
				qiniu_token: '',
				imgList: [], //上传的图片数组
				phone_number: '',

				token: '',
				member_id: '',
				company_id: '',
				company_name: '',
			}
		},
		onLoad(option) {
			this.token = uni.getStorageSync('btlh_process_token') || '';
			this.member_id = uni.getStorageSync('btlh_process_member_id') || '';
			this.company_id = uni.getStorageSync('bthl_process_LoginCompanyId') || '';
			this.company_name = uni.getStorageSync('bthl_process_LoginCompanyName') || '';
			this.phone_number = option.phone;
			this.opinion = option.content;
			if(option.annex_json){
				this.imgList = JSON.parse(decodeURIComponent(option.annex_json));
			}
			
			 // 监听事件  
			  /*  uni.$on('feedback',(data)=>{  
					this.opinion = data.content
					this.phone = data.phone
					this.imgList = data.annex_json
			    }) */


		},
		onShow() {
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	.bottom {
		display: flex;
		flex-direction: row;
		justify-content: center;
		margin-top: 80rpx;

		.bottom_btn {
			width: 320rpx;
			height: 70rpx;
			background: #40A0F2;
			border-radius: 8rpx;
			color: #FFFFFF;
			font-size: 30rpx;
			line-height: 70rpx;
			text-align: center;
		}
	}


	.title {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;

		margin-top: 20rpx;
		margin-left: 20rpx;

		.title_item {
			display: flex;
			flex-direction: row;
			align-items: center;

			.title_text {
				font-size: 30rpx;
				color: #333333;
				margin-left: 10rpx;
			}

			.dian {
				width: 8rpx;
				height: 8rpx;
				background: #333333;
				border-radius: 50%;
			}
		}

		.title_num {
			margin-right: 20rpx;
			font-size: 24rpx;
			color: #666666;
		}

	}
</style>
